package com.dz.lm.service.appLogin;

import java.util.List;
import java.util.Map;

import com.dz.lm.common.exception.ServiceException;
import com.dz.lm.domain.user.SmsInfo;
import com.dz.lm.domain.user.SystemSet;

public interface AppLoginService {
	/**
	 * 查询系统环境编码
	 * @throws ServiceException 
	 **/
	SystemSet qrySystemEnvironmentCode() throws ServiceException;
	/**
	 * 查询用户是否存在
	 * @throws ServiceException 
	 **/
	int selectByMobilePhoneCnt(String mobilePhone) throws ServiceException;
	/**
	 * 注册添加用户信息
	 * @throws ServiceException 
	 **/
	int addNewUserInfo(Map<String, Object> userInfo) throws ServiceException;
	/**
	 * 发送短信
	 * @throws ServiceException 
	 **/
	String sendSms(String mobilePhone) throws ServiceException;
	/**
	 * 查询验证码
	 * @throws ServiceException 
	 **/
	SmsInfo qrySmsInfo(String mobilePhone) throws ServiceException;
	/**
	 * 更新验证码状态
	 * @throws ServiceException 
	 **/
	int updateSmsInfo(SmsInfo si) throws ServiceException;
	/**
	 * 校验用户登录
	 * @throws ServiceException 
	 **/
	Map<String, Object> qryUserInfo(Map<String, Object> qryParam) throws ServiceException;
	/**
	 * 更新用户数据（密码）
	 * @throws ServiceException 
	 **/
	int updateUserInfo(Map<String, Object> userInfo) throws ServiceException;
	/**
	 * 获取融云Token
	 * @throws ServiceException 
	 **/
	String getRyToken(String userId) throws ServiceException;
	/**
	 * 查询融云Token
	 * @throws ServiceException 
	 **/
	Map<String, Object> qryRyToken(Map<String, Object> param) throws ServiceException;
	/**
	 * 查询我入驻的bar列表及app最新版本信息
	 * @throws ServiceException 
	 **/
	Map<String, Object> qryFavoriteMoneyBarList(Map<String, Object> param) throws ServiceException;
	
}
